﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace SteelDetection.UIControl
{
    partial class IconText
    {
        public IconText()
        {
            InitializeComponent();
        }

        public ImageSource Icon
        {
            set 
            {
                SetValue(IconProperty, value); 
                Image.Source = value; 
            }
            get { return (ImageSource)GetValue(IconProperty); }
        }
        public static readonly DependencyProperty IconProperty = DependencyProperty.RegisterAttached("Icon", typeof(ImageSource), typeof(IconText), new FrameworkPropertyMetadata(null));


        public string Text
        {
            set
            {
                SetValue(TextProperty, value);
                TextBlock.Text = value;
            }
            get { return (string)GetValue(TextProperty); }

        }
        public static readonly DependencyProperty TextProperty = DependencyProperty.RegisterAttached("Text", typeof(string), typeof(IconText), new FrameworkPropertyMetadata(null));




    }
}
